#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdbool.h>
#define m 11
 struct TreeNode {
     int val;
     struct TreeNode *left;
     struct TreeNode *right;
 };

int flag = 1;
int num = 0;

bool isUnivalTree(struct TreeNode* root) {
    if (!root) {
        return true;
    }
    if (root->left) {
        if (root->val != root->left->val || !isUnivalTree(root->left)) {
            return false;
        }
    }
    if (root->right) {
        if (root->val != root->right->val || !isUnivalTree(root->right)) {
            return false;
        }
    }
    return true;
}
int maxDepth(struct TreeNode* root) {
    if (root == NULL)
        return 0;
    else
        return max(maxDepth(root->left), maxDepth(root->right)) + 1;
}
int main()
{
    int a[m], i;
    for (i = 0; i < m - 1; i++)
        scanf("%d", &a[i]);
    a[m - 1] = a[0];
    for (i = 1; i < m - 1; i++)
        if (a[m - 1] > a[i])
            a[m - 1] = a[i];
    printf("Min is %d\n", a[m - 1]);
    return 0;
}
